package guardian

import dao.MongoClient
import grails.transaction.Transactional
import vo.OperationLog
import vo.Page

@Transactional
class OperationService {

    def save(OperationLog operationLog) {
        MongoClient.save(operationLog)
    }

    def searchToPage(Page page){
        page = MongoClient.findByPage(page,new OperationLog());
    }

    def searchAll(OperationLog operationLog){
        MongoClient.find(operationLog);
    }
}
